package com.heima.homeservicemanagementsystem.openfeign;

import com.heima.homeservicemanagementsystem.entity.GithubInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @Description
 * @Author jcf
 * @Date 2025/3/11
 */

@FeignClient(name = "github-api-user", url = "https://api.github.com")
public interface GithubClient {
    @GetMapping("/user")
    GithubInfo getUser(@RequestHeader("Authorization") String authorization);
}
